<?php 
class isloginModel extends Model{
		public function isloginAction(){	
		$user = isset($_SESSION['user']) ? $_SESSION['user'] : null;
	        if($user){
	          echo json_encode(['i' => '已登陆','msg' =>'200']);
	        }else{
	           echo json_encode(['i' => '未登陆','msg' =>'201']);
	        }			
		}
	}
	?>